package com.print;

import java.util.ArrayList;
import java.util.List;


public class TESTYNK {

    public static void main(String argv[]) {
        String printer= "wfq";
        String lot_id = "Y1712160001-002";
        //2.工单
        String woId  ="Y1712160001";
        String planQty  ="1111";
        String jz  ="1111";
        String cusId  ="1111";
        String fmMdlIdFk  ="1111";
        String thMdlIdFk  ="1111";
        String prdQty  ="1111";
        String boxId  ="1111";
        String mtrlBoxId  ="30B7BK0078";
        String crtTimestamp  ="1111";
        String mdlGuige  ="1111";
        String flayoutIdFk  ="1111";
        List<String> prdId = new ArrayList<String>();
        prdId.add("1");
        prdId.add("1");
        prdId.add("1");
        prdId.add("1");
        prdId.add("1");
        prdId.add("1");
        prdId.add("1");
       // String str = "{\"lot_id\":\"Y1712190002-009\",\"woId\":\"Y1712190002\",\"planQty\":\"20\",\"mtrlCate\":\"薄化+镀膜\",\"jz\":\"\",\"cusId\":\"007\",\"fmMdlIdFk\":\"23C6546051A010\",\"thMdlIdFk\":\"23C6546051A010\",\"prdQty\":\"1\",\"boxId\":\"XH004\",\"mtrlBoxId\":\"LLX1219001\",\"crtTimestamp\":\"2017-12-19 15:01:40.0\",\"mdlGuige\":\"915*740\",\"layoutIdFk\":\"10X7\"}\n";
       // new LabelApplet4JX().PrintYNKLCD(printer,str);
        //String str = "{\"printTyp\":\"B\",\"stdQty\":\"5\",\"cusId\":\"006\",\"woId\":\"Y201801200001\",\"boxId\":\"ZZX100\",\"toThickness\":\"0.4\",\"prdCnt\":\"5\",\"modelCnt\":\"55\",\"totalModelCnt\":275,\"whole_def_cnt\":16,\"whole_yield\":\"94.18\",\"checkUser\":\"\",\"mdlId\":\"C7546QB90BPP00\",\"prdAry\":[\"PXM001\",\"PXM002\",\"PXM003\",\"PXM004\",\"PXM005\"],\"yjycAry\":[\"2\",\"0\",\"0\",\"0\",\"0\"],\"syAry\":[\"2\",\"0\",\"0\",\"0\",\"0\"],\"cHsAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cAdAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cTdAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cShbjAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cPsAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cZwAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cLyAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"cOtherAry\":[\"0\",\"0\",\"0\",\"0\",\"0\"],\"tHsAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tAdAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tTdAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tShbjAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tPsAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tZwAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tLyAry\":[\"1\",\"0\",\"0\",\"0\",\"0\"],\"tOtherAry\":[\"0\",\"0\",\"0\",\"0\",\"0\"],\"remarkAry\":[\"\",\"\",\"\",\"\",\"\"]}";
       // new LabelApplet4JX().PrintYNKLCD2(printer,str);
        //new LabelApplet4JX().PrintForYNK006(printer,str);
        //String str ="{\"lot_id\":\"Y201801230001-037\",\"woId\":\"Y201801230001\",\"planQty\":\"15\",\"mtrlCate\":\"薄化+镀膜\",\"jz\":\"\",\"cusId\":\"007\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570T13GZ00\",\"prdQty\":\"15\",\"boxId\":\"UNTJZZX000004\",\"mtrlBoxId\":\"Y201801230001001\",\"crtTimestamp\":\"2018-01-23 10:17:08.0\",\"mdlGuige\":\"707.5*740\",\"layoutIdFk\":\"11X5\",\"prdId\":[\"T5E47A2031A_Y201801230001\",\"T5E47A2031B_Y201801230001\",\"T5E47A2031C_Y201801230001\",\"T5E47A2031D_Y201801230001\",\"T5E47A2032A_Y201801230001\",\"T5E47A2032B_Y201801230001\",\"T5E47A2032C_Y201801230001\",\"T5E47A2032D_Y201801230001\",\"T5E47A2035A_Y201801230001\",\"T5E47A2035B_Y201801230001\",\"T5E47A2035C_Y201801230001\",\"T5E47A2035D_Y201801230001\",\"T5E47A203AA_Y201801230001\",\"T5E47A203AB_Y201801230001\",\"T5E47A203AC_Y201801230001\"]}";
        //String str ="{\"lot_id\":\"Y201801230001-037\",\"woId\":\"Y201801230001\",\"planQty\":\"15\",\"mtrlCate\":\"薄化+镀膜\",\"jz\":\"\",\"cusId\":\"007\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570T13GZ00\",\"prdQty\":\"15\",\"boxId\":\"UNTJZZX000004\",\"mtrlBoxId\":\"Y201801230001001\",\"crtTimestamp\":\"2018-01-23 10:17:08.0\",\"mdlGuige\":\"707.5*740\",\"layoutIdFk\":\"11X5\"}";
        //new LabelApplet4JX().PrintJBorDMQA2(printer,str);
        //new LabelApplet4JX().PrintYNKLCD(printer,str);
       // String str ="{\"lot_id\":\"Y201801230001-037\",\"woId\":\"Y201801230001\",\"planQty\":\"15\",\"mtrlCate\":\"薄化+镀膜\",\"cusId\":\"007\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570T13GZ00\",\"prdQty\":\"15\",\"crtTimestamp\":\"2018-01-23 10:17:08.0\",\"mdlGuige\":\"707.5*740\",\"layoutIdFk\":\"11X5\",\"boxId\":\"\"}";
      //  new LabelApplet4JX().PrintYNKLCD2(printer,str);
       /* String str ="{\"lot_id\":\"D0180201002\",\"woCateDsc\":\"试验品\",\"woId\":\"Y201802010001\",\"planQty\":\"10\",\"mtrlCate\":\"薄化+镀膜\",\"cusId\":\"007\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570010A000\",\"prdQty\":\"10\",\"crtTimestamp\":\"2018-02-01 11:01:41.0\",\"mdlGuige\":\"707.5*740\",\"layoutIdFk\":\"11X5\",\"prdId\":[\"PRD01802001\",\"PRD01802002\",\"PRD01802003\",\"PRD01802004\",\"PRD01802005\",\"PRD01802006\",\"PRD01802007\",\"PRD01802008\",\"PRD01802009\",\"PRD01802010\"]}";
        new LabelApplet4JX().PrintForYNKSC(printer,str);*/

// String str1= "{\"lot_id\":\"Y201804060008-008\",\"woId\":\"Y201804060008\",\"planQty\":\"480\",\"mtrlCate\":\"薄化\",\"woCateDsc\":\"量产品\",\"jz\":\"0530\",\"cusId\":\"ZGD01307\",\"fmMdlIdFk\":\"HSD053H8W2-A00\",\"thMdlIdFk\":\"HSD053H8W2-D00\",\"prdQty\":\"20\",\"boxId\":\"30B7C100AT\",\"mtrlBoxId\":\"30B7C100AT\",\"crtTimestamp\":\"2018-04-06 16:50:55.0\",\"mdlGuige\":\"393*650 0.8->0.4\",\"layoutIdFk\":\"3X10\",\"prdId\":[\"37BH508CA\",\"37BH753BA\",\"37BH753KA\",\"37BH978CA\",\"37BH978EA\",\"37BH978GA\",\"37BH978HA\",\"37BH978JA\",\"37BJ296JA\",\"37BJ296LA\",\"37BJ296MA\",\"37BJ296NA\",\"37BJ296PA\",\"37BJ296QA\",\"37BJ296RA\",\"37BJ296SA\",\"37BJ296TA\",\"37BJ296UA\",\"37BJ296VA\",\"37BH508AA\"]}";

   //  String str1= "{\"lot_id\":\"Y201803310001-001\",\"woId\":\"Y201803310001\",\"planQty\":\"20\",\"mtrlCate\":\"薄化\",\"woCateDsc\":\"量产品\",\"jz\":\"0570\",\"cusId\":\"018\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570T13GZ00\",\"prdQty\":\"1\",\"boxId\":\"1801\",\"mtrlBoxId\":\"TEST18LL\",\"oldBox\":\"是\",\"crtTimestamp\":\"2018-03-31 13:56:53.0\",\"mdlGuige\":\"AAA 0.8->0.3\",\"layoutIdFk\":\"11X7\",\"prdId\":[\"GS001\"]}";
//   String str1="{\"lot_id\":\"Y201803310001-004\",\"woId\":\"Y201803310001\",\"planQty\":\"20\",\"mtrlCate\":\"薄化\",\"woCateDsc\":\"量产品\",\"jz\":\"0570\",\"cusId\":\"018\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570T13GZ00\",\"prdQty\":\"1\",\"boxId\":\"1804\",\"mtrlBoxId\":\"TEST18LL\",\"crtTimestamp\":\"2018-03-31 13:56:53.0\",\"mdlGuige\":\"AAA 0.8->0.3\",\"layoutIdFk\":\"11X7\",\"oldBox\":\"无要求\",\"prdId\":[\"GS004\"]}";

        //String str1= "{\"lot_id\":\"Y201804180001-002\",\"woId\":\"Y201804180001\",\"planQty\":\"20\",\"mtrlCate\":\"薄化+镀膜\",\"cusId\":\"018\",\"fmMdlIdFk\":\"23C7570010A000\",\"thMdlIdFk\":\"23C7570T13GZ00\",\"prdQty\":\"1\",\"boxId\":\"1815\",\"mtrlBoxId\":\"TEST121\",\"crtTimestamp\":\"2018-04-18 15:41:41.0\",\"mdlGuige\":\"AAAAAA 0.8->0.3\",\"layoutIdFk\":\"11X7\",\"prdId\":[]}";

   //  String str1=   \"{\\"lot_id\\":\\"Y201804180001-009\\",\\"woId\\":\\"Y201804180001\\",\\"planQty\\":\\"20\\",\\"mtrlCate\\":\\"薄化+镀膜\\",\\"woCateDsc\\":\\"量产品\\",\\"jz\\":\\"0570\\",\\"cusId\\":\\"018\\",\\"fmMdlIdFk\\":\\"23C7570010A000\\",\\"thMdlIdFk\\":\\"23C7570T13GZ00\\",\\"prdQty\\":\\"3\\",\\"boxId\\":\\"123AA3\\",\\"mtrlBoxId\\":\\"TEST121\\",\\"crtTimestamp\\":\\"2018-04-18 15:41:41.0\\",\\"mdlGuige\\":\\"AAAAAA 0.8->0.3\\",\\"layoutIdFk\\":\\"11X7\\",\\"oldBox\\":\\"无要求\\",\\"prdId\\":[\\"AAAAASB\\",\\"AAAAASC\\",\\"AAAAASS\\"]}\";


//       String str = \"{\"lot_id\":\"Y201805020005-002\",\"woId\":\"Y201805020005\",\"planQty\":\"40\",\"mtrlCate\":\"薄化\",\"woCateDsc\":\"量产品\",\"jz\":\"0320\",\"cusId\":\"YJS1611\",\"fmMdlIdFk\":\"HSD032B3N5-A02\",\"thMdlIdFk\":\"HSD032B3N5-A02\",\"prdQty\":\"20\",\"boxId\":\"UNTJZZJ000100\",\"mtrlBoxId\":\"30B437001C\",\"crtTimestamp\":\"2018-05-02 20:37:49.0\",\"mdlGuige\":\"600*650 1.0->0.8\",\"layoutIdFk\":\"8X12\",\"oldBox\":\"无要求\",\"prdId\":[\"342J230VA\",\"342J231VA\",\"342J236TA\",\"342J236UA\",\"342J236VA\",\"342J606AA\",\"342J606BA\",\"342J606CA\",\"342J606DA\",\"342J606EA\",\"342J606FA\",\"342J606GA\",\"342J606HA\",\"342J606JA\",\"342J606KA\",\"342J606MA\",\"342J606NA\",\"342J628AA\",\"342J628BA\",\"342J628DA\"]}";



String str=   "{\"lot_id\":\"Y201804200001-001\",\"woId\":\"Y201804200001\",\"planQty\":\"120\",\"mtrlCate\":\"薄化\",\"woCateDsc\":\"量产品\",\"jz\":\"0626\",\"cusId\":\"006\",\"fmMdlIdFk\":\"C2626B010BPP00\",\"thMdlIdFk\":\"C5626Q010BPP00\",\"prdQty\":\"20\",\"boxId\":\"TBP842861\",\"mtrlBoxId\":\"TBP842861\",\"crtTimestamp\":\"2018-04-20 09:12:51.0\",\"mdlGuige\":\"750*925 1.0->0.3\",\"layoutIdFk\":\"6X10\",\"oldBox\":\"原箱回\",\"prdId\":[\"Y83PP19033\",\"Y83PP19043\",\"Y83PP19053\",\"Y83PP19063\",\"Y83PP19073\",\"Y83PP19083\",\"Y83PP19093\",\"Y83PP19103\",\"Y83PP19113\",\"Y83PP19123\",\"Y83PP19133\",\"Y83PP19143\",\"Y83PP19153\",\"Y83PP19163\",\"Y83PP19173\",\"Y83PP19183\",\"Y83PP19193\",\"Y83PP19203\",\"Y83PP19213\",\"Y83PP19223\"]}";



        new LabelApplet4JX().PrintForYNKHN(printer,str);
      //  new LabelApplet4JX().PrintJBorDMQAHN(printer,str);

    }


}


